home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software of the Month Club 1996 June
/
Software of the Month Club 1996 June.iso
/
pc
/
os2
/
utility
/
clock
/
window.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1996-02-21
|
731b
|
53 lines
// Class WINDOW: Encapsulates the startup/shutdown logic for a OS/2-PM window.
#define INCL_BASE
#define INCL_PM
#include <os2.h>
#include "debug.h"
#include "window.h"
// Constructor
Window::Window
(
HWND Parent,
PSZ ClassName,
PSZ Title,
ULONG Style,
LONG x,
LONG y,
LONG cx,
LONG cy,
HWND Owner,
HWND Zorder,
ULONG Id,
PVOID Parms,
PVOID PresParams
)
{
Handle = WinCreateWindow
(
Parent,
ClassName,
Title,
Style,
x, y, cx, cy,
Owner,
Zorder,
Id,
Parms,
PresParams
) ;
}
// Destructor
Window::~Window ( )
{
WinSendMsg ( Handle, WM_SAVEAPPLICATION, 0, 0 ) ;
WinDestroyWindow ( Handle ) ;
}